package com.motong.gongdan.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@EqualsAndHashCode(callSuper = true)
@ApiModel(value="语音播报")
@Data
@TableName(value = "broadcast")
@Accessors(chain = true)
public class Broadcast extends PublicPo implements Serializable {
    /**
     * 信息提醒id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="信息提醒id")
    private Integer id;

    /**
     * 播报内容
     */
    @TableField(value = "`text`")
    @ApiModelProperty(value="播报内容")
    private String text;

    /**
     * 所属模块(0 报工)
     */
    @TableField(value = "belong_module")
    @ApiModelProperty(value="所属模块(0 报工)")
    private Integer belongModule;

    /**
     * 播报状态(0 未播报, 1 已播报)
     */
    @TableField(value = "state")
    @ApiModelProperty(value="播报状态(0 未播报, 1 已播报)")
    private Integer state;

    /**
     * 轮数
     */
    @TableField(value = "round_num")
    @ApiModelProperty(value="轮数")
    private Integer roundNum;

    /**
     * 间隔时间(分钟)
     */
    @TableField(value = "interval_time")
    @ApiModelProperty(value="间隔时间(分钟)")
    private Integer intervalTime;

    /**
     * 创建时间
     */
    @TableField(value = "notice_time")
    @ApiModelProperty(value="通知时间")
    private Date noticeTime;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value="创建时间")
    private Date createTime;

    /**
     * 通知人
     */
    @TableField(value = "info_user")
    @ApiModelProperty(value="通知人(user表id)")
    private Integer infoUser;

    /**
     * 关联id
     */
    @TableField(value = "relation_id")
    @ApiModelProperty(value="关联id")
    private Integer relationId;





    private static final long serialVersionUID = 1L;
}